<?php

include_once __DIR__."/../vendor/autoload.php";

foreach(glob(__DIR__."/Services/*.php") as $serviceFile){
    include_once $serviceFile;
}

\asyncService\Bootstrap::newInstance(include __DIR__."/config.php");

 $main = new \asyncService\mainService();

 $main->registerService(\asyncTest\Services\DemoService::getInstance());
 $main->registerService(\asyncTest\Services\Demo1Service::getInstance());

 $main->run();
